﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><tiles:getAsString name="title" /></title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="js/plug-in.js"></script>

</head>
<body onhashchange="blog.load_content()">

<!--body start -->
<div id="bodyMain">
	<div id="body">
		<!--left start -->
		<div id="left">
			<a href="./"><img src="images/logo.gif" alt="identical" width="300" height="81" title="identical" /></a>
			<!-- 搜索开始 -->
				<tiles:insertAttribute name="search" />
			<!-- 搜索结束 -->
			<!--news start -->
			<div id="news">
			<!-- 最近更新开始 -->
				<tiles:insertAttribute name="news"/>
			<!-- 最近更新结束 -->
			</div>
			<!--news end -->
			<br class="spacer" />
		</div>
		<!--left end -->
		
		<!--mid start -->
		<div id="mid">
			<!--web start -->
			<div id="web">
				<a href="./"></a>
			</div>
			<!--web end -->
			<!-- 菜单开始 -->
				<tiles:insertAttribute name="menu" />
			<!-- 菜单结束 -->
			<ul class="sub">
				<li class="mem">
					<tiles:insertAttribute name="user"/>
				</li>
				<li class="subscribe"><a href="./">subscribe</a></li>
			</ul>
			<!-- 热门文章开始 -->
				<tiles:insertAttribute name="hot"></tiles:insertAttribute>
			<!-- 热门文章结束 -->
			<br class="spacer" />
		</div>
		<!--mid end -->
		
		<!--right start -->
		<div id="right">
		<!-- 导航开始 -->
			<tiles:insertAttribute name="nav" />
		<!-- 导航结束 -->		
		<!-- 内容区开始 -->
			<div id="content_body">
				<tiles:insertAttribute name="body"/>
			</div>	
		<!-- 内容区结束 -->
		
		<br class="spacer" />
		</div>
		<!--right end -->
		
		<br class="spacer" />
	</div>
	
	<!--弹出层时背景层DIV-->
	<div id="fade" class="black_overlay"></div>
	<div id="MyDiv" class="white_content">
	<!-- 登录开始 -->
		<tiles:insertAttribute name="login" />
	<!-- 登录结束-->
	</div>
	<!-- 弹出层结束 -->
 
</div>
<!--body end -->

<!--footer start -->
<div id="footerMain">
<!-- 底部开始 -->
  	<tiles:insertAttribute name="foot" />
<!-- 底部结束 -->
</div>
<!--footer end -->

</body>
</html>
